package com.xw.dao;

import com.xw.model.UserInfo;
import com.xw.service.TeacherVo;
import com.xw.util.MyMapper;
import com.xw.vo.UserInfoVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface SysUserInfoMapper extends MyMapper<UserInfo> {
    Integer applyTeacher(@Param("userId") String userId,@Param("applyReason") String applyReason,@Param("applyUrl") String applyUrl);

    List<UserInfoVo> findCheckTeacherData(@Param("userNickName") String userNickName);

    List<UserInfoVo> showTeachers(@Param("user")UserInfoVo userInfoVo);

    List<UserInfoVo> myCareTeacher(@Param("user")UserInfoVo userInfoVo);

    List<UserInfoVo> getTeacherList();

    UserInfoVo findUserInfo(@Param("user")UserInfoVo userInfoVo);

    List<UserInfoVo> getMyCare(@Param("user") UserInfoVo userInfoVo);

    List<UserInfoVo> findMyFans(@Param("user")UserInfoVo userInfoVo);

    Integer showTeachersCount(@Param("user")UserInfoVo userInfoVo);

    List<TeacherVo> findTeacher(@Param("searchName") String searchName);

    List<TeacherVo> findRecommendTeacherMP(@Param("userId") String userId);

    TeacherVo findTeacherDetailByUserIdMP(@Param("userId") String userId,@Param("teacherUserId") String teacherUserId);
}